package com.entropy.code.repository;

import com.entropy.code.dal.mapper.UserMapper;
import com.entropy.code.dal.model.UserPO;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @author xiachao
 * @date 2022-01-26
 */
@Repository
public class UserRepository {

    @Resource
    private UserMapper userMapper;

    public int addUser(UserPO po) {
        return this.userMapper.addUser(po);
    }

    public UserPO getByUid(Long uid) {
        return this.userMapper.getByUid(uid);
    }
}
